package com.etbsms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.etbsms.dao.ICodeLanguageDAO;
import com.etbsms.domain.CodeLanguage;
import com.etbsms.service.ICodeLanguageService;

@Service
@Component("codeLanguageService")
public class CodeLanguageServiceImpl implements ICodeLanguageService {

	@Autowired
	private ICodeLanguageDAO codeLanguageDAO;
	
	@Override
	public List<CodeLanguage> getAll() {
		// TODO Auto-generated method stub
		return codeLanguageDAO.getAll();
	}

	@Override
	public boolean save(CodeLanguage entity) {
		// TODO Auto-generated method stub
		return codeLanguageDAO.save(entity);
	}

	@Override
	public CodeLanguage get(String code) {
		// TODO Auto-generated method stub
		return codeLanguageDAO.get(code);
	}
}
